﻿using System.IO;

public class AssetBooks : Asset {
	// === Public =====================================================================================================
	public string Authors { get; set; }
	public int Year { get; set; }
	public string Title { get; set; }
	public string Edition { get; set; }

	// for xml
	public AssetBooks() { }
	public AssetBooks(LibraryBooks library, FileInfo fileInfo) : base(library, fileInfo) { }

	// === Protected ==================================================================================================
	protected override string GetAssetName(FileInfo fileInfo) { return fileInfo.Name.Remove(fileInfo.Name.Length - fileInfo.Extension.Length); }
}